class ErrorCallableProcessingInterceptor extends java.lang.Object implements CallableProcessingInterceptor
RESPONSE_HANDLED, RESULT_NONE
Constructor and Description |
---|
ErrorCallableProcessingInterceptor() |
Modifier and Type | Method and Description |
---|---|
<T> java.lang.Object |
handleError(NativeWebRequest request,
java.util.concurrent.Callable<T> task,
java.lang.Throwable t)
Invoked from a container thread when an error occurred while processing
the async request before the
Callable task completes. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterCompletion, beforeConcurrentHandling, handleTimeout, postProcess, preProcess
public <T> java.lang.Object handleError(NativeWebRequest request, java.util.concurrent.Callable<T> task, java.lang.Throwable t) throws java.lang.Exception
CallableProcessingInterceptor
Callable
task completes.
Implementations may return a value, including an Exception
, to
use instead of the value the Callable
did not return in time.
The default implementation always returns CallableProcessingInterceptor.RESULT_NONE
.
handleError
in interface CallableProcessingInterceptor
request
- the current requesttask
- the task for the current async requestt
- the error that occurred while request processingCallableProcessingInterceptor.RESULT_NONE
or CallableProcessingInterceptor.RESPONSE_HANDLED
, concurrent processing
is resumed and subsequent interceptors are not invokedjava.lang.Exception
- in case of errors